﻿<%@ Page Language="C#" AutoEventWireup="true"%>

<%
    string sql = "";
    db.DbHelper dbx = new db.DbHelper();
    
    sql = "update[help] set [helpName]='{0}',[helpType]='{1}',[helpUploadBy]='{2}',[helpUploadDate]='{3}',[helpUrl]='{4}' where [helpId]='{5}'";
    sql = string.Format(sql, Request["helpName"], Request["helpType"], null, Request["helpUploadDate"], Request["helpUrl"], Request["helpId"]);
   
    if (dbx.RunNoQuery(sql) > 0)
    {
        Response.Write("<script>alert('修改成功！');window.parent.$('#dlgedit').dialog('close');window.parent.location.reload();</script>");
    }
    else
    {
        Response.Write(sql);
    }

%>
